package
{
   public class OpenNewWindowModel
   {
      
      private static var _urls:Object;
       
      
      public function OpenNewWindowModel()
      {
         super();
      }
      
      public static function HasIn(searchString:String) : Boolean
      {
         var index:int = 0;
         var url:String = null;
         
         index = 0;
         while (index < _urls.length)
         {
            url = String(_urls[index]);
            if (searchString.indexOf(url) > -1)
            {
               return true;
            }
            index++;
         }
         return false;
         
         /*var _loc3_:int = 0;
         var _loc2_:String = null;
         _loc3_ = 0;
         while(_loc3_ < _URLS.length)
         {
            _loc2_ = String(_URLS[_loc3_]);
            if(param1.indexOf(_loc2_) > -1)
            {
               return true;
            }
            _loc3_++;
         }
         return false;*/
      }
      
      public static function build(param1:String) : void
      {
         _urls = JSON.parse(param1).openWindows;
      }
   }
}
